package com.oasystem.controller;

import java.util.ArrayList;
import java.util.List;


import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;
import com.oasystem.annotation.JController;
import com.oasystem.dao.MyDao;

@JController("/hello")
public class MyController extends Controller {
	MyDao dao = new MyDao();

	public void index() {
		renderText("hello!");
	}
	
	public void go(){
		renderJsp("MyJsp.jsp");
	}

	public void test() {
		List<Record> list = new ArrayList<Record>();
		list = dao.getTest();
		renderJson(list);
	}

}
